package com.learn.jdk.caseDemo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Copyright: Copyright (c) 2020 Asiainfo
 *
 * @ClassName: com.learn.jdk.caseDemo.MyBusiness
 * @Description: 该类的功能描述
 * @version: v1.0.0
 * @author: lipan
 * @date: 2020/5/20 17:13
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ------------------------------------------------------------
 * 2020/5/20      lipan          v1.0.0               修改原因
 */

public class MyBusiness {


    public static void main(String[] args) {

        List<Integer> dataList=new ArrayList<>();
        dataList.add(1);
        dataList.add(2);

//        dataList.forEach(i->{
//            try {
//                print(i);
//            }catch (Exception e){
//
//            }
//
//
//        });
        dataList.forEach(LambdaUtils.WrapperConsumer(i->print(i)));

        System.out.println("===程序还在执行====");

    }


    public static void print(int i) throws Exception{
        System.out.println(i);
        int t= 1/0;
    }


}
